require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'rake/rdoctask'
require 'rake/gempackagetask'

task :default => [:cucumber]

RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = ['--colour', '--format', 'doc']
end

Cucumber::Rake::Task.new(:cucumber)

namespace "doc" do
  Rake::RDocTask.new(:generate) do |doc|
    doc.main = "Readme.txt"
    doc.rdoc_files.include("Readme.txt", "lib/**/*.rb")
    doc.options << "--all"
    doc.rdoc_dir = "doc"
  end
end
